home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / Java / Pdapilot / memo / Record.java < prev   
Encoding:
Java Source  |  1997-08-08  |  603 b   |  32 lines

  1.  
  2. package Pdapilot.memo;
  3.  
  4. import java.io.*;
  5.  
  6. /** A representation of a memo database record.
  7.  */
  8.  
  9. public class Record extends Pdapilot.Record {
  10.  
  11.         public String text;
  12.         
  13.         public Record() {
  14.             super();
  15.         }
  16.         
  17.         public Record(byte[] contents, Pdapilot.RecordID id, int index, int attr, int cat) {
  18.             super(contents, id, index, attr, cat);
  19.         }
  20.         
  21.         public native void unpack(byte[] data);
  22.         public native byte[] pack();
  23.                 
  24.         public void fill() {
  25.             text = "";
  26.         }
  27.         
  28.         public String describe() {
  29.             return "text '"+Pdapilot.Util.prettyPrint(text)+"', "+super.describe();
  30.         }
  31. }
  32.